package com.gwq.computed;

import com.alibaba.fastjson.JSON;
import com.gwq.entity.Points;

import java.io.*;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {

//    public static void main(String[] args) {
//
//        List<Points> pointsList = new ArrayList<>();
//
//        for(int i=0;i<6000;i++){
//            Points points = new Points();
//            points.setGuid(getUUID());
//            points.setName("cd1");
//            points.setPointType("1");
//            points.setTag("1001001");
//            points.setUnit("V");
//            pointsList.add(points);
//        }
//
//
//        String s = JSON.toJSONString(pointsList);
//
//        System.out.println(s);
//
//
//
//    }
//
//    public static String getUUID() {
//        UUID uuid = UUID.randomUUID();
//        String str = uuid.toString();
//        // 去掉"-"符号
//        String temp = str.substring(0, 8) + str.substring(9, 13) + str.substring(14, 18) + str.substring(19, 23) + str.substring(24);
//        return temp;
//    }

    /*public static void main(String[] args) {
        try {  //C:\Users\29122\Desktop
            List<String> s1  = readTxt(new File("C:\\Users\\29122\\Desktop\\20221109205705.txt"));

            System.out.println(s1);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }


    public static List<String> readTxt(File file) throws IOException {
        String s = "";
        InputStreamReader in = new InputStreamReader(new FileInputStream(file),"UTF-8");
        BufferedReader br = new BufferedReader(in);
        StringBuffer content = new StringBuffer();
        int i=0;
        List<String> exList=new ArrayList<>();
        while ((s=br.readLine())!=null){
            if(i!=0) {
                Pattern p = Pattern.compile("\\s*|\t|\r|\n"); // 去除多个空格，去除制表符，回车，换行
                Matcher m = p.matcher(s);
                s = m.replaceAll("");

                String[] ex = s.split(";");
                exList.addAll(Arrays.asList(ex));
            }
            i++;
        }
        return exList;
    }*/

    public static void main(String[] args) {
        String s = "3+4=";
        String t = s.substring(s.indexOf("=")+1,s.length());
        System.out.println(t);
    }

}
